package com.joven.shelltest.service;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author wzj
 * @Date 2023-07-27 08:34
 **/
public interface TokenService {
    /**
     * 创建token
     * @return
     * */
    String createToken();

    /**
     * 检验token
     * @param request
     * @return
     * @throws Exception
     */
    boolean checkToken(HttpServletRequest request) throws Exception;


    boolean checkToken(String methodName,long expireTime) throws Exception;
}
